<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 商城管理<span class="c-gray en">&gt;</span> 订单发货</nav>
	<div id="sectionContent" class="Hui-article">
		<article class="page-container">
			<div class="form form-horizontal" id="form-admin-add">
        <input type="hidden" class="input-text" id="ordersNapshotDetailId" name="ordersNapshotDetailId">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>物流公司：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" id="logisticsCompany" name="logisticsCompany">
					</div>
				</div>
        <div class="row cl">
					<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>物流单号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" id="logisticsNumber" name="logisticsNumber">
					</div>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
						<input class="btn btn-primary" type="button" v-on:click="saveData()" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" style="margin-right:30px;">
						<input class="btn" type="button" onclick="javascript:history.go(-1)" value="&nbsp;&nbsp;取消&nbsp;&nbsp;">
					</div>
				</div>
			</div>
		</article>
	</div>
	<script>
    new Vue({
        el:'#sectionContent',
        http: authorization(),
        created:function(){
            $('#ordersNapshotDetailId').val(getQueryString('id'));
        },
        methods:{
            backToList:function(){
                window.parent.location.href="#!view/shopping/order/order-list.html?"+Math.random();
            },
            saveData:function(){
                var formData = {
                    ordersNapshotDetailId:$('#ordersNapshotDetailId').val(),
                    logisticsCompany:$('#logisticsCompany').val(),
                    logisticsNumber:$('#logisticsNumber').val()
                };
                this.$http.patch('/restful/shopping/v1.0/order/fcourier',formData).then((response) => {
                    this.backToList();
                }).catch(function(response) {
                    alert(errorMsg(response));
                });
            }
        }
    });
</script>
